﻿using Abp.Application.Services;
using Microsoft.AspNetCore.Mvc;
using SportsPlatform.Base;
using SportsPlatform.Dto.SportBusiness.CompetitionGroupingInfo;
using SportsPlatform.Query.SportBusiness.CompetitionGroupingInfo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.SportBusiness.ISportBusiness
{
    /// <summary>
    /// 比赛分组
    /// </summary>
    public interface ICompetitionGroupingInfoService: IApplicationService
    {

        /// <summary>
        /// 新增比赛项目分组信息
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> AddCompetitionGroupingInfo(List<AddGroupInfoListsQuery> query);

        /// <summary>
        /// 分组信息同步
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> GroupingInfoSynchronization(List<GroupingInfoSynchronizationQuery> query);

        /// <summary>
        /// 判断当前赛事项目是否存在分组信息
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<ResultDto<JudgeGroupinfoByEventsIdDto>> JudgeGroupinfoByEventsId(JudgeGroupinfoByEventsIdQuery query);

        /// <summary>
        /// 根据场次ID获取分组列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<ResultDto<GetGroupInfoListByEventSessionIdDto>> GetGroupInfoListByEventSessionId(GetGroupInfoListByEventSessionIdQuery query);

        /// <summary>
        /// 获取第一场分组信息客户端
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<ResultListDto<GetGroupCompeteInfoListDto>> GetGroupCompeteInfoList(GetGroupCompeteInfoListQuery query);

        /// <summary>
        /// 列表查询
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<PagePagingDto<CompetitionGroupingInfoByUserListDto>> GetCompetitionGroupingInfoByUserList(CompetitionGroupingInfoByUserListQuery Query);
        /// <summary>
        /// 详情
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<ResultDto<List<CompetitionGroupingInfoByUserDetailsDto>>> GetCompetitionGroupingInfoByUserDetails(CompetitionGroupingInfoByUserDetailsQuery Query);
        /// <summary>
        /// 比赛成绩
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<ResultDto<CompetitionGroupingInfoByUserAchievementDto>> GetCompetitionGroupingInfoByUserAchievement(CompetitionGroupingInfoByUserAchievementQuery Query);
        /// <summary>
        /// 历史成绩
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<PagePagingDto<CompetitionGroupingInfoByUserAchievementListDto>> GetCompetitionGroupingInfoByUserHistoricalAchievement(CompetitionGroupingInfoByUserAchievementListQuery Query);
    }
}
